﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Xiami.util {
    public class XDialog {
        protected string _title;    //提示窗体标题

        public XDialog(string title) {
            //some construct things
            this._title = title;
        }

        public void showWarn(string msg) {
            MessageBox.Show(msg, this._title, MessageBoxButtons.OK);
        }

        public void showInfo(string msg) {
            MessageBox.Show(msg, this._title, MessageBoxButtons.OK);
        }

        public DialogResult showAsk(string msg) {
            return MessageBox.Show(msg, this._title, MessageBoxButtons.OKCancel);
        }

    }
}
